import 'package:flutter/material.dart';
import 'package:flutter_app/components/layout.dart';
import 'package:flutter_app/utils/AppUtil.dart';

class GoogleStep3 extends StatefulWidget {
  @override
  _GoogleStep3State createState() => _GoogleStep3State();
}
Widget Title(String text){
  return Text(text,style: TextStyle(fontSize: 15,fontWeight: FontWeight.w500),);
}
class _GoogleStep3State extends State<GoogleStep3> {
  String key='SSASSAJWUUEE;QKWLQW';
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: DarkHeadBar('谷歌验证码'),
        body: Padding(
          padding: const EdgeInsets.symmetric(horizontal: 20.0),
          child: Column(
            children: [
              Expanded(
                  child: ColumnStart(
                children: [
                  SizedBox(
                    height: 20,
                  ),
                  Title('验证手机'),
                  TextField(
                      decoration: InputDecoration(
                          hintText: '短信验证码',
                          enabledBorder: UnderlineInputBorder(
                              borderSide:BorderSide(color: Color(0xffB6B6B6), width: 0.5)),
                          hintStyle: TextStyle(color: Colors.grey,height: 2.2),
                          suffixIcon:TextButton(child: Text('发送',style: TextStyle(fontSize: 15,color: Colors.blueAccent),),)
                      )
                  ),
                  SizedBox(
                    height: 40,
                  ),
                  Title('输入谷歌验证码'),
                  TextField(
                      decoration: InputDecoration(
                          hintText: '谷歌验证码',
                          enabledBorder: UnderlineInputBorder(
                              borderSide:BorderSide(color: Color(0xffB6B6B6), width: 0.5)),
                          hintStyle: TextStyle(color: Colors.grey,height: 2.2),
                      )
                  ),
                ],
              )),
              FlatButton(
                  minWidth: MediaQuery.of(context).size.width,
                  onPressed: () {
                  },
                  color: Colors.blueAccent,
                  textColor: Colors.white,
                  child: Text('提交'))
            ],
          ),
        ));
  }
}
